package org.jeecg.modules.parameter.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @author P
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "sim_parks", schema = "simulator")
@ApiModel(value = "sim_parks", description = "参数-线路-场段")
public class SimPark implements Serializable {


    @TableId(type = IdType.ASSIGN_UUID, value = "id")
    @ApiModelProperty(value = "场段id，唯一标识")
    private String id;

    @ApiModelProperty(value = "场段名称")
    @TableField(value = "park_name")
    private String parkName;

    @ApiModelProperty(value = "所属线路id（uuid）")
    @TableField(value = "main_line_id")
    private String mainLineId;

    @ApiModelProperty(value = "开始坐标")
    @TableField(value = "start_offset")
    private String startOffset;

    @ApiModelProperty(value = "结束坐标")
    @TableField(value = "end_offset")
    private String endOffset;

    @ApiModelProperty(value = "上行对接站id")
    @TableField(value = "up_out")
    private String upOut;

    @ApiModelProperty(value = "下行对接站id")
    @TableField(value = "down_out")
    private String downOut;

    @ApiModelProperty(value = "运营状态，运营01(默认) ，停运02，限流03")
    @TableField(value = "operating_status")
    private String operatingStatus;

    @ApiModelProperty(value = "类型，车辆段01(默认) ，停车场02")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "是否热备(01 是， 02 否)")
    @TableField(value = "ishot")
    private String isHot;

}
